package com.huqi.p2;

import java.util.Arrays;
import java.util.stream.LongStream;

/**
 * @author 胡琦
 * @date 2021-11-20 星期六 22:16
 */
public class Demo1 {
    public static void main(String[] args) {

        long[] longs = LongStream.rangeClosed(1, 10).toArray();
        long[] longs1 = LongStream.range(1, 10).toArray();

        Arrays.stream(longs).forEach(System.out::print);
        System.out.println();
        Arrays.stream(longs1).forEach(System.out::print);
        // System.out.println(longs1.toString());


    }
}
